package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "rcc_o_heatBase")
public class HeatBase {

	private Integer uniqueId;
	private String baseYear;
	private String equType;
	private Integer equId;
	private BigDecimal exchangeFlow;
	private BigDecimal exchangeHeat;
	private Date baseDate;
	private BigDecimal baseFlow;
	private BigDecimal baseHeat;
	private Date endDate;
	private BigDecimal endFlow;
	private BigDecimal endHeat;
	private BigDecimal seasonFlow;
	private BigDecimal seasonHeat;
	private String holderName;
	private String equSerialNo;
	private BigDecimal heatingArea;
	private String beginBaseCollectType;
	private String beginEndCollectType;
	private String type;
	private Date faultTime;
	private String equProblem;
	private String equState;
	private Boolean isPass;
	@Id
    @GeneratedValue
    @Column(name = "uniqueId", unique = true, nullable = false)
	public Integer getUniqueId() {
		return uniqueId;
	}
	public void setUniqueId(Integer uniqueId) {
		this.uniqueId = uniqueId;
	}
	
	@Column(name = "baseYear")
	public String getBaseYear() {
		return baseYear;
	}
	public void setBaseYear(String baseYear) {
		this.baseYear = baseYear;
	}
	
	@Column(name = "equType")
	public String getEquType() {
		return equType;
	}
	public void setEquType(String equType) {
		this.equType = equType;
	}
	
	@Column(name = "equId")
	public Integer getEquId() {
		return equId;
	}
	public void setEquId(Integer equId) {
		this.equId = equId;
	}
	
	@Column(name = "exchangeFlow")
	public BigDecimal getExchangeFlow() {
		return exchangeFlow;
	}
	public void setExchangeFlow(BigDecimal exchangeFlow) {
		this.exchangeFlow = exchangeFlow;
	}
	
	@Column(name = "exchangeHeat")
	public BigDecimal getExchangeHeat() {
		return exchangeHeat;
	}
	public void setExchangeHeat(BigDecimal exchangeHeat) {
		this.exchangeHeat = exchangeHeat;
	}
	
	@Column(name = "baseDate")
	public Date getBaseDate() {
		return baseDate;
	}
	public void setBaseDate(Date baseDate) {
		this.baseDate = baseDate;
	}
	
	@Column(name = "baseFlow")
	public BigDecimal getBaseFlow() {
		return baseFlow;
	}
	public void setBaseFlow(BigDecimal baseFlow) {
		this.baseFlow = baseFlow;
	}
	
	@Column(name = "baseHeat")
	public BigDecimal getBaseHeat() {
		return baseHeat;
	}
	public void setBaseHeat(BigDecimal baseHeat) {
		this.baseHeat = baseHeat;
	}
	
	@Column(name = "endDate")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Column(name = "endFlow")
	public BigDecimal getEndFlow() {
		return endFlow;
	}
	public void setEndFlow(BigDecimal endFlow) {
		this.endFlow = endFlow;
	}
	
	@Column(name = "endHeat")
	public BigDecimal getEndHeat() {
		return endHeat;
	}
	public void setEndHeat(BigDecimal endHeat) {
		this.endHeat = endHeat;
	}
	
	@Column(name = "seasonFlow")
	public BigDecimal getSeasonFlow() {
		return seasonFlow;
	}
	public void setSeasonFlow(BigDecimal seasonFlow) {
		this.seasonFlow = seasonFlow;
	}
	
	@Column(name = "seasonHeat")
	public BigDecimal getSeasonHeat() {
		return seasonHeat;
	}
	public void setSeasonHeat(BigDecimal seasonHeat) {
		this.seasonHeat = seasonHeat;
	}
	@Column(name = "holderName")
	public String getHolderName() {
		return holderName;
	}

	public void setHolderName(String holderName) {
		this.holderName = holderName;
	}
	@Column(name = "equSerialNo")
	public String getEquSerialNo() {
		return equSerialNo;
	}

	public void setEquSerialNo(String equSerialNo) {
		this.equSerialNo = equSerialNo;
	}
	@Column(name = "heatingArea")
	public BigDecimal getHeatingArea() {
		return heatingArea;
	}

	public void setHeatingArea(BigDecimal heatingArea) {
		this.heatingArea = heatingArea;
	}
	@Column(name = "beginBaseCollectType")
	public String getBeginBaseCollectType() {
		return beginBaseCollectType;
	}

	public void setBeginBaseCollectType(String beginBaseCollectType) {
		this.beginBaseCollectType = beginBaseCollectType;
	}
	@Column(name = "beginEndCollectType")
	public String getBeginEndCollectType() {
		return beginEndCollectType;
	}

	public void setBeginEndCollectType(String beginEndCollectType) {
		this.beginEndCollectType = beginEndCollectType;
	}
	@Column(name = "`type`")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "faultTime")
	public Date getFaultTime() {
		return faultTime;
	}

	public void setFaultTime(Date faultTime) {
		this.faultTime = faultTime;
	}
	@Column(name = "equProblem")
	public String getEquProblem() {
		return equProblem;
	}

	public void setEquProblem(String equProblem) {
		this.equProblem = equProblem;
	}
	@Column(name = "equState")
	public String getEquState() {
		return equState==null?"可用":equState;
	}

	public void setEquState(String equState) {
		this.equState = equState;
	}
	@Column(name = "isPass")
	public Boolean getPass() {
		return isPass==null?false:isPass;
	}

	public void setPass(Boolean pass) {
		isPass = pass;
	}
}
